package com.subject.shuati.domain.covert;

import com.subject.shuati.domain.entity.SubjectAnswerBo;
import com.subject.shuati.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 实体类与Bo之间的转换
 */
@Mapper
public interface RadioSubjectConverter {

    RadioSubjectConverter INSTANCE = Mappers.getMapper(RadioSubjectConverter.class);

    /**
     * BO转实体类
     * @param subjectAnswerBo
     * @return
     */
    SubjectRadio BoConverterToEntity(SubjectAnswerBo subjectAnswerBo);

    /**
     * 实体类集合转Bo集合
     * @param subjectRadioList
     * @return
     */
    List<SubjectAnswerBo> EntityConverterToBoList(List<SubjectRadio> subjectRadioList);
}
